//
//  UserCenterView.h
//  xpkc
//
//  Created by TopSage on 15/10/16.
//  Copyright (c) 2015年 TopSage. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "UserCenterHeadButton.h"
/**
 *  用户界面代理
 */
@protocol UserCenterViewDelegate <NSObject>

- (void)userHeadClick:(UIButton *)btn;
- (void)menuBtnClick:(UIButton *)btn;
- (void)signOutBtnClick:(UIButton *)btn;
- (void)setBtnClick:(UIButton *)btn;

@end

@interface UserCenterView : UIView<UIScrollViewDelegate>

@property (nonatomic, strong)UserCenterHeadButton *header;
@property (nonatomic, assign)BOOL isLogin;
@property (nonatomic, assign)id<UserCenterViewDelegate> delegate;

/**
 *  创建的菜单按钮组
 *  [空名称代表分隔间隙]
 *
 *  @param titles 名称数组
 */
- (void)menuTitles:(NSArray *)titles andIcons:(NSArray *)icons;
- (void)updateBtnAtIndex:(NSInteger)index withBadgevalue:(NSString *)badgevalue;

@end
